// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.rd2.annotation.RoleData2;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * BatchFlow
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "batch_flow", autoResultMap = true)
@Schema(title = "批次流水")
@RoleData2(groupId = 1, funcKey = "BatchFlow")
public class BatchFlow implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 操作时间
   */
  @TableField(value = "`operation_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "操作时间")
  private java.util.Date operationTime;

  /**
   * 类型
   */
  @TableField(value = "`type`")
  @Schema(title = "类型")
  private String type;

  /**
   * 批次号
   */
  @TableField(value = "`batch_number`")
  @Schema(title = "批次号")
  private String batchNumber;

  /**
   * 品名
   */
  @TableField(value = "`trade_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long tradeName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 店铺
   */
  @TableField(value = "`shop`", typeHandler = JacksonTypeHandler.class)
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private List<Long> shop;

  /**
   * MSKU
   */
  @TableField(value = "`msku`")
  @Schema(title = "MSKU")
  private String msku;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 仓库
   */
  @TableField(value = "`warehouse`", typeHandler = JacksonTypeHandler.class)
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private List<Long> warehouse;

  /**
   * 单据号
   */
  @TableField(value = "`document_number`")
  @Schema(title = "单据号")
  private String documentNumber;

  /**
   * 源头批次号
   */
  @TableField(value = "`source_batch_number`")
  @Schema(title = "源头批次号")
  private String sourceBatchNumber;

  /**
   * 源头单据号
   */
  @TableField(value = "`source_document_number`")
  @Schema(title = "源头单据号")
  private String sourceDocumentNumber;

  /**
   * 在途结存
   */
  @TableField(value = "`deposit_in_transit`")
  @Schema(title = "在途结存")
  private Integer depositInTransit;

  /**
   * 在库结存
   */
  @TableField(value = "`balance_library`")
  @Schema(title = "在库结存")
  private Integer balanceLibrary;

  /**
   * 可用在途量
   */
  @TableField(value = "`available_in_transit`")
  @Schema(title = "可用在途量")
  private Integer availableInTransit;

  /**
   * 次品在途量
   */
  @TableField(value = "`defective_products`")
  @Schema(title = "次品在途量")
  private Integer defectiveProducts;

  /**
   * 待检量
   */
  @TableField(value = "`amount_inspected`")
  @Schema(title = "待检量")
  private Integer amountInspected;

  /**
   * 可用量
   */
  @TableField(value = "`available_amount`")
  @Schema(title = "可用量")
  private Integer availableAmount;

  /**
   * 次品量
   */
  @TableField(value = "`defective_quantity`")
  @Schema(title = "次品量")
  private Integer defectiveQuantity;

  /**
   * 采购单价
   */
  @TableField(value = "`purchase_price`")
  @Schema(title = "采购单价")
  private java.math.BigDecimal purchasePrice;

  /**
   * 单位费用
   */
  @TableField(value = "`unit_costs`")
  @Schema(title = "单位费用")
  private java.math.BigDecimal unitCosts;

  /**
   * 单位头程
   */
  @TableField(value = "`unit_head_stroke`")
  @Schema(title = "单位头程")
  private java.math.BigDecimal unitHeadStroke;

  /**
   * 单位库存成本
   */
  @TableField(value = "`unit_inventory_cost`")
  @Schema(title = "单位库存成本")
  private java.math.BigDecimal unitInventoryCost;

  /**
   * 货值
   */
  @TableField(value = "`goods_value`")
  @Schema(title = "货值")
  private java.math.BigDecimal goodsValue;

  /**
   * 费用
   */
  @TableField(value = "`expenses`")
  @Schema(title = "费用")
  private java.math.BigDecimal expenses;

  /**
   * 头程
   */
  @TableField(value = "`head_stroke`")
  @Schema(title = "头程")
  private java.math.BigDecimal headStroke;

  /**
   * 库存成本
   */
  @TableField(value = "`inventory_cost`")
  @Schema(title = "库存成本")
  private java.math.BigDecimal inventoryCost;

  /**
   * 采购计划
   */
  @TableField(value = "`procurement_planning`")
  @Schema(title = "采购计划")
  private String procurementPlanning;

  /**
   * 采购单
   */
  @TableField(value = "`purchase_order`")
  @Schema(title = "采购单")
  private String purchaseOrder;

  /**
   * 收货单
   */
  @TableField(value = "`goods_receipt`")
  @Schema(title = "收货单")
  private String goodsReceipt;

  /**
   * 供应商
   */
  @TableField(value = "`vendor`")
  @Schema(title = "供应商")
  private String vendor;

  /**
   * 操作人
   */
  @TableField(value = "`operator`")
  @Schema(title = "操作人")
  private String operator;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 更新时间
   */
  @TableField(value = "`update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date updateTime;
}
